<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <!-- Google Chrome Frame也可以让IE用上Chrome的引擎: -->
    <meta name="renderer" content="webkit">
    <!--国产浏览器高速模式-->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="搜索关键字，以半角英文逗号隔开"/>
    <title>商豪物业管理系统</title>

    <!-- 公共样式 开始 -->
    <link rel="shortcut icon" type="image/x-icon" href="../res/images/agiey-mp732-001.ico">
    <link rel="shortcut icon" type="image/x-icon" href="../res/images/bitbug_favicon.ico">
    <link rel="stylesheet" type="text/css" href="../res/css/base.css">
    <link rel="stylesheet" type="text/css" href="../res/fonts/iconfont.css">
    <script type="text/javascript" src="../res/framework/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../res/js/base.js"></script>
    <link rel="stylesheet" type="text/css" href="../res/layui/css/layui.css">
    <!--[if lt IE 9]>
    <script src="../res/framework/html5shiv.min.js"></script>
    <script src="../res/framework/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="../res/layui/layui.js"></script>
    <script src="../res/framework/cframe.js"></script><!-- 仅供所有子页面使用 -->
    <!-- 公共样式 结束 -->
    <script type="text/javascript" src="../res/js/Tools.js"></script>
    <link rel="stylesheet" type="text/css" href="../res/css/frameStyle.css">
    <script type="text/javascript" src="../res/framework/frame.js"></script>
    <script type="text/javascript" src="../res/js/user.js"></script>
    <script src="../res/js/login_common.js" charset="utf-8"></script>
</head>

<script>
    $(function () {
        var url = "../userAction/findModByManager";

        $.ajax({
            //请求方式
            type: "POST",
            //请求的媒体类型
            contentType: "application/json;charset=UTF-8",
            //请求地址
            url: url,
            //数据，json字符串
            data: null,
            async: true,
            //请求成功
            success: function (getUser) {
                if (getUser.userId == "" || getUser.userId == null) {
                    location.href = "login.html";
                } else {
                    $("#yly").html(getUser.userName);
                }
            }
        });
    });
</script>

<body>
<!-- 左侧菜单 - 开始 -->
<div class="frameMenu">
    <div class="logo">
        <img src="../res/images/20200618213725.png"/>
        <div class="logoText">
            <h1>商豪物业管理系统</h1>
        </div>
    </div>
    <div class="menu">
        <div class="hoverBox"></div>
        <ul>
            <li>
                <a class="menuFA" href="javascript:void(0)"
                   onclick="menuCAClick('performance/performance.html',this, 'page10080')">
                    <i class="layui-icon layui-icon-rmb left"
                       onmouseenter="getLeftTips(this, '业绩中心')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>业绩中心</font>
                    <!--<i class="iconfont icon-dajiantouyou right"></i>-->
                </a>
                <!--<dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('house/house.html',this, 'page10090')">房屋管理</a></dt>
                    &lt;!&ndash;<dt><a href="javascript:void(0)" onclick="menuCAClick('type/type.html',this, 'page10023')">户型管理</a>
                    </dt>&ndash;&gt;
                </dl>-->
            </li>
            <li>
                <a class="menuFA" href="javascript:void(0)" onclick="menuCAClick('house/house.html',this, 'page10090')">
                    <i class="layui-icon layui-icon-home left"
                       onmouseenter="getLeftTips(this, '房源')"
                       onmouseenter="getLeftTips(this, '房屋信息')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>房源</font>
                    <!--<i class="iconfont icon-dajiantouyou right"></i>-->
                </a>
                <!--<dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('house/house.html',this, 'page10090')">房屋管理</a></dt>
                    &lt;!&ndash;<dt><a href="javascript:void(0)" onclick="menuCAClick('type/type.html',this, 'page10023')">户型管理</a>
                    </dt>&ndash;&gt;
                </dl>-->
            </li>
            <li>
                <a class="menuFA" href="javascript:void(0)"
                   onclick="menuCAClick('client/client.html',this, 'page10027')">
                    <i class="layui-icon layui-icon-group left"
                       onmouseenter="getLeftTips(this, '客户管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>客户管理</font>
                    <!--<i class="iconfont icon-dajiantouyou right"></i>-->
                </a>
                <!--<dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('client/client.html',this, 'page10027')">客户列表</a>
                    </dt>
                    <dt id="user"><a href="javascript:void(0)"
                                     onclick="menuCAClick('user/user.html',this, 'page10025')">员工管理</a></dt>
                    &lt;!&ndash;<dt><a href="javascript:void(0)"
                           onclick="menuCAClick('tgls/management/management.html',this, 'page10026')">人事管理人员</a></dt>&ndash;&gt;
                </dl>-->
            </li>
            <li>
                <a class="menuFA" href="javascript:void(0)"
                   onclick="menuCAClick('client/type.html',this, 'page10028')">
                    <i class="layui-icon layui-icon-star left"
                       onmouseenter="getLeftTips(this, '收藏管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>收藏管理</font>
                    <!--<i class="iconfont icon-dajiantouyou right"></i>-->
                </a>
                <!--<dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('client/client.html',this, 'page10027')">客户列表</a>
                    </dt>
                    <dt id="user"><a href="javascript:void(0)"
                                     onclick="menuCAClick('user/user.html',this, 'page10025')">员工管理</a></dt>
                    &lt;!&ndash;<dt><a href="javascript:void(0)"
                           onclick="menuCAClick('tgls/management/management.html',this, 'page10026')">人事管理人员</a></dt>&ndash;&gt;
                </dl>-->
            </li>
            <li id="user">
                <a class="menuFA" href="javascript:void(0)"
                   onclick="menuCAClick('user/user.html',this, 'page10025')">
                    <i class="layui-icon layui-icon-user left"
                       onmouseenter="getLeftTips(this, '员工管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>员工管理</font>
                    <!--<i class="iconfont icon-dajiantouyou right"></i>-->
                </a>
            </li>

            <li id="inform">
                <a class="menuFA" href="javascript:void(0)"
                   onclick="menuCAClick('sector/sector.html',this, 'page10033')">
                    <i class="layui-icon layui-icon-notice left"
                       onmouseenter="getLeftTips(this, '通知管理')"
                       onmouseleave="layer.closeAll('tips')"></i>
                    <font>通知管理</font>
                    <!--<i class="iconfont icon-dajiantouyou right"></i>-->
                </a>
            </li>
            <li id="log">
                <a class="menuFA" href="javascript:void(0)"><i class="layui-icon layui-icon-log left"
                                                               onmouseenter="getLeftTips(this, '日志')"
                                                               onmouseleave="layer.closeAll('tips')"></i><font>日志</font><i
                        class="iconfont icon-dajiantouyou right"></i></a>
                <dl>
                    <dt>
                        <a href="javascript:void(0)" onclick="menuCAClick('log/log.html?logType=0',this, 'page10030')">登录日志</a>
                    </dt>
                    <dt>
                        <a href="javascript:void(0)" onclick="menuCAClick('log/log.html?logType=1',this, 'page10034')">录入日志</a>
                    </dt>
                    <dt>
                        <a href="javascript:void(0)" onclick="menuCAClick('log/log.html?logType=2',this, 'page10035')">删除日志</a>
                    </dt>
                    <dt>
                        <a href="javascript:void(0)" onclick="menuCAClick('log/log.html?logType=4',this, 'page10036')">修改日志日志</a>
                    </dt>
                </dl>
            </li>
            <!--<li>
                <a class="menuFA" href="javascript:void(0)"><i class="iconfont icon-survey left"
                                                               onmouseenter="getLeftTips(this, '勘测管理')"
                                                               onmouseleave="layer.closeAll('tips')"></i><font>勘测管理</font><i
                        class="iconfont icon-dajiantouyou right"></i></a>
                <dl>
                    <dt><a href="javascript:void(0)"
                           onclick="menuCAClick('tgls/sampling/sampling.html',this, 'page10034')">采样管理</a></dt>
                    <dt><a href="javascript:void(0)" onclick="menuCAClick('tgls/survey/survey.html',this, 'page10035')">勘测管理</a>
                    </dt>
                </dl>
            </li>-->
        </ul>
    </div>
</div>
<!-- 左侧菜单 - 结束 -->

<div class="main">
    <!-- 头部栏 - 开始 -->
    <div class="frameTop">
        <div class="shrinkBut">
            <div class="hoverBox"></div>
            <ul>
                <li><a href="javascript:void(0)" onclick="menuShrink(this)" onmouseenter="getTips(this, '收缩菜单')"
                       onmouseleave="layer.closeAll('tips')"><i class="iconfont icon-caidan-shousuo" style="font-size: 30px;"></i></a></li>
                <li><a href="javascript:void(0)" onclick="frameRefresh()" onmouseenter="getTips(this, '刷新')"
                       onmouseleave="layer.closeAll('tips')"><i class="iconfont icon-htmal5icon23"></i></a></li>
            </ul>
        </div>
        <div class="topMenu">
            <div class="hoverBox"></div>
            <ul>
                <li><a href="javascript:void(0)" id="fullScreenBut" onclick="fullScreen('fullScreenBut')"
                       onmouseenter="getTips(this, '全屏')" onmouseleave="layer.closeAll('tips')"><i
                        class="iconfont icon-full-screen"></i></a></li>
                <li>
                    <a href="javascript:void(0)"><font id="yly">管理员</font><i class="iconfont icon-up-copy"></i></a>
                    <dl>
                        <dt><a href="javascript:void(0)"
                               onclick="menuCAClick('personal.html',this, 'pageUserInfo'	)">基本资料</a>
                        </dt>
                        <dt><a href="javascript:void(0)"
                               onclick="menuCAClick('user_password.html',this, 'pageModifyPassword')">修改密码</a></dt>
                    </dl>
                </li>
                <li><a href="login.html" onmouseenter="getTips(this, '退出系统')" onmouseleave="layer.closeAll('tips')"><i
                        class="iconfont icon-084tuichu"></i></a></li>
            </ul>
        </div>
    </div>
    <!-- 头部栏 - 结束 -->

    <!-- 核心区域 - 开始 -->
    <div class="frameMain">
        <div class="title" id="frameMainTitle">
            <i class="iconfont icon-shuangzuojiantou- leftbut" onclick="pageShow('l')"></i>
            <div class="mainPageBox">
                <div class="mainPage">
							<span class="active" onclick="pageSwitch(this)">
			    				<div class="hoverBox"></div>
								<i class="iconfont icon-shouye"></i>
							</span>
                </div>
            </div>
            <i class="iconfont icon-shuangyoujiantou- rightbut" onclick="pageShow('r')"></i>
            <i class="iconfont icon-iconfontarrows1 rightbut pageAllBut">
                <dl>
                    <dt><a href="javascript:void(0)" onclick="nowpageClose()">关闭当前标签页</a></dt>
                    <dt><a href="javascript:void(0)" onclick="otherpageClose()">关闭其它标签页</a></dt>
                    <dt><a href="javascript:void(0)" onclick="allpageClose()">关闭全部标签页</a></dt>
                </dl>
            </i>
        </div>
        <div class="con">
            <div class="mainPageCon">
                <iframe class="mainIframe" src="index.html" scrolling="yes"></iframe>
            </div>
        </div>
        <!-- 核心区域 - 结束 -->
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $("#yly").html(window.loginObj.manager.userName);
        if (window.loginObj.manager.userType == 2) {
            $("#user").hide();
            $("#inform").hide();
            $("#log").hide();
        }

        var url = "../houseOrClientAction/selectLatest";
        $.post(url, null, function (obj) {
            if(obj){
                layui.use(['layedit', 'laydate'], function () {
                    var layer = layui.layer;
                    layer.open({
                        type: 2,
                        title: '查看',
                        shadeClose: true,
                        shade: false,
                        maxmin: true, //开启最大化最小化按钮
                        area: ['90%', '90%'],
                        content: 'showInform.html?houseClientId=' + obj.houseClientId
                    });
                });
            }

        });
    });
</script>
</body>
</html>

